﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.Model.BasicEventInfo
{
    /// <summary>
    /// 人员表
    /// </summary>
    /// 
    [Table(Name = "TPerson")]
    public class PersonInfo
    {
        /// <summary>
        /// 编码
        /// </summary>
        private string m_Code;
        [Column(IsPrimaryKey = true, Name = "编码", DbType = "char(5) not null", Storage = "m_Code")]
        public string Code
        {
            get { return m_Code; }
            set { m_Code = value; }
        }
        /// <summary>
        /// 分站编码
        /// </summary>
        private string m_StationCode;
        [Column(Name = "分站编码", DbType = "char(3) not null", Storage = "m_StationCode", UpdateCheck = UpdateCheck.Never)]
        public string StationCode
        {
            get { return m_StationCode; }
            set { m_StationCode = value; }
        }
        /// <summary>
        /// 单位编码
        /// </summary>
        private string m_UnitsCode;
        [Column(Name = "单位编码", DbType = "varchar(50) not null", Storage = "m_UnitsCode", UpdateCheck = UpdateCheck.Never)]
        public string UnitsCode
        {
            get { return m_UnitsCode; }
            set { m_UnitsCode = value; }
        }
        /// <summary>
        /// 通话号码
        /// </summary>
        private string m_PhoneCode;
        [Column(Name = "通话号码", DbType = "varchar(50) not null", Storage = "m_PhoneCode", UpdateCheck = UpdateCheck.Never)]
        public string PhoneCode
        {
            get { return m_PhoneCode; }
            set { m_PhoneCode = value; }
        }
        /// <summary>
        /// 短信号码
        /// </summary>
        private string m_MessagePhoneCode;
        [Column(Name = "短信号码", DbType = "varchar(50) not null", Storage = "m_MessagePhoneCode", UpdateCheck = UpdateCheck.Never)]
        public string MessagePhoneCode
        {
            get { return m_MessagePhoneCode; }
            set { m_MessagePhoneCode = value; }
        }
        /// <summary>
        /// 类型编码
        /// </summary>
        private int m_PersonTypeCode;
        [Column(Name = "类型编码", DbType = "int not null", Storage = "m_PersonTypeCode", UpdateCheck = UpdateCheck.Never)]
        public int PersonTypeCode
        {
            get { return m_PersonTypeCode; }
            set { m_PersonTypeCode = value; }
        }
        /// <summary>
        /// 姓名
        /// </summary>
        private string m_Name;
        [Column(Name = "姓名", DbType = "varchar(20) not null", Storage = "m_Name", UpdateCheck = UpdateCheck.Never)]
        public string Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }
        /// <summary>
        /// 工号
        /// </summary>
        private string m_JobCode;
        [Column(Name = "工号", DbType = "varchar(10) not null", Storage = "m_JobCode", UpdateCheck = UpdateCheck.Never)]
        public string JobCode
        {
            get { return m_JobCode; }
            set { m_JobCode = value; }
        }
        /// <summary>
        /// 口令
        /// </summary>
        private string m_Pass;
        [Column(Name = "口令", DbType = "varchar(50) not null", Storage = "m_Pass", UpdateCheck = UpdateCheck.Never)]
        public string Pass
        {
            get { return m_Pass; }
            set { m_Pass = value; }
        }
        /// <summary>
        /// 绑定车辆编码
        /// </summary>
        private string m_BoundAmbluance;
        [Column(Name = "绑定车辆编码", DbType = "char(5)", Storage = "m_BoundAmbluance", UpdateCheck = UpdateCheck.Never)]
        public string BoundAmbluance
        {
            get { return m_BoundAmbluance; }
            set { m_BoundAmbluance = value; }
        }
        /// <summary>
        /// 上次操作时间
        /// </summary>
        private DateTime m_LastTime;
        [Column(Name = "上次操作时间", DbType = "datetime", Storage = "m_LastTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime LastTime
        {
            get { return m_LastTime; }
            set { m_LastTime = value; }
        }
        /// <summary>
        /// 登录台号
        /// </summary>
        private string m_DeskCode;
        [Column(Name = "登录台号", DbType = "char(4)", Storage = "m_DeskCode", UpdateCheck = UpdateCheck.Never)]
        public string DeskCode
        {
            get { return m_DeskCode; }
            set { m_DeskCode = value; }
        }
        /// <summary>
        /// 顺序号
        /// </summary>
        private int m_OrderNo;
        [Column(Name = "顺序号", DbType = "int", Storage = "m_OrderNo", UpdateCheck = UpdateCheck.Never)]
        public int OrderNo
        {
            get { return m_OrderNo; }
            set { m_OrderNo = value; }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        private bool m_Valid;
        [Column(Name = "是否有效", DbType = "bit", Storage = "m_Valid", UpdateCheck = UpdateCheck.Never)]
        public bool Valid
        {
            get { return m_Valid; }
            set { m_Valid = value; }
        }
    }
}
